package com.intelligent.mts.core.dao;

import com.intelligent.mts.core.entity.SerialNumber;

import java.util.List;

/**
 * Created by cherry on 2016/7/20.
 */
@MyBatisRepository
public interface SerialNumberDao {

    void save (SerialNumber serialNumber);

    void update (SerialNumber serialNumber);

    void delete (Long id);

    List<SerialNumber> findBySerialValue (String serialValue);

    String findProductionIdBySerialValue (String serialValue);

    List<SerialNumber> findByProductionId (String productionId);

    List<SerialNumber> findByStationId (String stationId, String productionId);

    SerialNumber findByPSS (String productionId, String stationId, String snName);

    SerialNumber findBySerialValueAndName (String serialValue, String snName);

}
